/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


function showListman(){
    var manUl = document.getElementById("4manul");
    manUl.style.display= "block";
}
function showListwoman(){
    var womanUl = document.getElementById("4womanul");
    womanUl.style.display= "block";
}

function hideList(){
    var manUl = document.getElementById("4manul");
    var womanUl = document.getElementById("4womanul");
    manUl.style.display= "none";
    womanUl.style.display= "none";
}

function countCart(){
    var countlength;
    var count = document.cookie.split(";");
    if(count[0] == ",,0," || count[0] == ""){
        document.cookie = document.cookie.replace(count[0], "", true);
        count = document.cookie.split(";");
        countlength = count[1].split(".");
        if(countlength.length == 1){
            if(countlength[0] == " ,,0," || countlength[0] == " "){
                document.getElementById("count").innerHTML = 0;
            }else{
                document.getElementById("count").innerHTML = countlength.length;
            }
        }else{
            document.getElementById("count").innerHTML = countlength.length;
        }
    }else{
        count = document.cookie.split(";");
        countlength = count[1].split(".");
        if(countlength.length == 1){
            if(countlength[0] == " ,,0," || countlength[0] == " "){
                document.getElementById("count").innerHTML = 0;
            }else{
                document.getElementById("count").innerHTML = countlength.length;
            }
        }else{
            document.getElementById("count").innerHTML = countlength.length;
        }
    }
}
function shoppingcart(){
    loadCart();
    countCart();
}